package com.zy.dp.adapter.example2;

import java.util.ArrayList;
import java.util.List;

public class Client2
{
	public static void main(String[] args)
	{

		LogModel lm1 = new LogModel();
		lm1.setLogId("001");
		lm1.setOperateUser("admin");

		lm1.setOperateTime("2013-05-10 17:02:06");

		lm1.setLogContent("测试");

		List<LogModel> list = new ArrayList<LogModel>();

		list.add(lm1);
		LogFileOperateApi LogfileApi = new LogFileOperate("");
		LogDbOperateApi api = new Adpter(LogfileApi);
		api.createLog(lm1);

		List<LogModel> allLog = api.getAllLog();

		System.out.println("allLog=" + allLog);

	}
}
